package com.d2rv.skybox;

import com.d2rv.offscreen.OffScreen3D;
import processing.core.PApplet;

/**
 * This class is the skybox manager which controls and draws the skybox.
 *
 * @author Darrieutort A., Dupouy A., Rossignol L., Van Poucke A.
 */
public class SkyboxManager {

    private Skybox skybox;

    /**
     * Default constructor.
     *
     * @param parent
     */
    public SkyboxManager(PApplet parent) {
        this.skybox = new Skybox(parent);
    }

    /**
     * Calls the drawing function of the skybox.
     *
     * @param parent the current offscreen
     */
    public void drawSkybox(OffScreen3D parent) {
        this.skybox.draw(parent);
    }
}